#include <stdio.h>

void Print(unsigned int n)
{
	if(n>9)
	{
		Print(n/10);	
	}
	
	printf("%d ", n % 10);
}

int main()
{
	unsigned int num = 0;
	
	scanf("%u", &num);
	Print(num);

	return 0;
}


